package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author stylefeng
 * @since 2017-06-20
 */
public class Area extends Model<Area> {

    private static final long serialVersionUID = 1L;

    /**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 省
     */
	private Integer province_id;
	private Integer province_code;
	private String province_name;
	/**
	 * 市
	 */
	private Integer city_id;
	private Integer city_code;
	private String city_name;
	/**
	 * 区
	 */
	private Integer county_id;
	private Integer county_code;
	private String county_name;
	/**
	 * 乡镇
	 */
	private Integer street_id;
	private Integer street_code;
	private String street_name;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProvince_id() {
		return province_id;
	}

	public void setProvince_id(Integer province_id) {
		this.province_id = province_id;
	}

	public Integer getProvince_code() {
		return province_code;
	}

	public void setProvince_code(Integer province_code) {
		this.province_code = province_code;
	}

	public String getProvince_name() {
		return province_name;
	}

	public void setProvince_name(String province_name) {
		this.province_name = province_name;
	}

	public Integer getCity_id() {
		return city_id;
	}

	public void setCity_id(Integer city_id) {
		this.city_id = city_id;
	}

	public Integer getCity_code() {
		return city_code;
	}

	public void setCity_code(Integer city_code) {
		this.city_code = city_code;
	}

	public String getCity_name() {
		return city_name;
	}

	public void setCity_name(String city_name) {
		this.city_name = city_name;
	}

	public Integer getCounty_id() {
		return county_id;
	}

	public void setCounty_id(Integer county_id) {
		this.county_id = county_id;
	}

	public Integer getCounty_code() {
		return county_code;
	}

	public void setCounty_code(Integer county_code) {
		this.county_code = county_code;
	}

	public String getCounty_name() {
		return county_name;
	}

	public void setCounty_name(String county_name) {
		this.county_name = county_name;
	}

	public Integer getStreet_id() {
		return street_id;
	}

	public void setStreet_id(Integer street_id) {
		this.street_id = street_id;
	}

	public Integer getStreet_code() {
		return street_code;
	}

	public void setStreet_code(Integer street_code) {
		this.street_code = street_code;
	}

	public String getStreet_name() {
		return street_name;
	}

	public void setStreet_name(String street_name) {
		this.street_name = street_name;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
